package com.jdz.controller.portal;

import com.jdz.common.ServerResponse;
import com.jdz.service.IRaceTypeDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/racetypedetails")
public class RaceTypeDetailsController {

    @Autowired
    IRaceTypeDetailsService iRaceTypeDetailsService;


    /**
     * 列出项目类型详情和当前类型处以比赛的等级
     * @param racetypeno
     * @return
     */
    @RequestMapping(value = "details.do",method = RequestMethod.POST)
    @ResponseBody
    public ServerResponse details(Integer racetypeno){
        return iRaceTypeDetailsService.details(racetypeno);
    }


}
